<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
        "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:p="http://primefaces.org/ui"
        >
<h:head>

</h:head>
<h:body>


    <h2>Login</h2>
    <h:form id="login">
        <p:growl id="growl" sticky="true" globalOnly="false"/>
        <p:panelGrid columns="2">
            <h:outputLabel for="username" value="Username:"/>
            <p:inputText id="username" value="#{loginMgb.username}" required="true" label="Name"/>


            <h:outputLabel for="password" value="Password:"/>
            <p:password id="password" value="#{loginMgb.password}" required="true"/>


            <h:outputLabel for="rememberMe" value="Remember Me:"/>
            <p:selectBooleanCheckbox id="rememberMe" value="#{loginMgb.remember}"/>


            <p:commandButton value="Login" action="#{loginMgb.submit}" update=":login:growl"/>

        </p:panelGrid>
    </h:form>
</h:body>
</html>